import { STORAGE_KEY_TOKEN } from '@/consts/consts'

export const getToken = (): [key: string, value: string] | null => {
  const tokenValue = localStorage.getItem(STORAGE_KEY_TOKEN)

  if (tokenValue) {
    return ['Authorization', `Bearer ${tokenValue}`]
  }

  return null
}
